package atguigu05._super.exer1;

/**
 * ClassName: ManKind
 * Package: atguigu03._extends.exer1
 * Description:
 *        修改方法重写的练习2中定义的类Kids中employeed()方法，在该方法中调用父类ManKind的employeed()方法，
 *        然后再输出"but Kids should study and no job."
 *
 * @Author BuTang
 * @Create 2023/3/6 9:56
 * @Version 1.0
 */
public class Kids {
     int sex ;
     int salary;

    public Kids() {
    }

    public Kids(int sex, int salary) {
        this.sex = sex;
        this.salary = salary;
    }

    public void manOrWoman(){
        if (sex == 1) {
            System.out.println("man");
        }else if (sex == 0 ){
            System.out.println("woman");
        }
    }

    public void employeed(){
        System.out.println("Kids should study and no job.");
    }

}